package cn.learn.server.jute;

import cn.learn.server.Record;

import java.io.IOException;
import java.util.List;

public interface OutputArchive {
    void writeInt(int i, String tag) throws IOException;

    void writeLong(long l, String tag) throws IOException;

    void writeString(String s, String tag) throws IOException;

    void writeRecord(Record r, String tag) throws IOException;

    void startRecord(Record r, String tag) throws IOException;

    void endRecord(Record r, String tag) throws IOException;

    void startVector(List<?> v, String tag) throws IOException;

    void endVector(List<?> v, String tag) throws IOException;

    void writeBuffer(byte[] buf, String tag) throws IOException;
}
